// index.ts
// 获取应用实例
const app = getApp<IAppOption>()

Page({
  data: {
    activeName: '',
    tabbarActive: 0
  },
  // 事件处理函数

  onChange(event: any) {
    this.setData({
      activeName: event.detail,
    });
  },
  bottomBar(event: any) {

    this.setData({ 
      tabbarActive: event.detail
    });

    // wx.showToast({
    //   title: `切换到标签 ${event.detail.name}`,
    //   icon: 'none',
    // });
  }
})
